package com.derive.education_service.web.registration.service;

import com.derive.education_service.common.global.Paper;
import com.derive.education_service.common.global.ResponseMessage;
import com.derive.education_service.entity.Registration;
import com.derive.education_service.web.registration.bean.dto.InfoIntentionAddDto;
import com.derive.education_service.web.registration.bean.dto.QueryParam;
import org.springframework.stereotype.Component;

/**
 * 信息登记
 */
@Component
public interface RegistrationService {
    // 信息登记
    ResponseMessage addInfoIntention(InfoIntentionAddDto intentionAddDto);

    // 标记登记信息 -- 设置为已读 tag=0，默认为1
    ResponseMessage tagInfoIntention(int resId);

    // 删除登记信息 -- 物理删除
    boolean delInfoIntention(int resId);

    // 查询登记详情
    Registration getRegistrationById(int resId);

    // 查询登记列表信息 -- 分页查询 -- 条件查询 -- 时间倒序
    Paper<Registration> getRegistrationList(QueryParam queryParam);
}
